package com.ruoyi.contract.mapper;

import java.util.List;
import com.ruoyi.contract.domain.ContractProjectConnection;

/**
 * 合同项目连Mapper接口
 * 
 * @author ruoyi
 * @date 2024-10-18
 */
public interface ContractProjectConnectionMapper 
{
    /**
     * 查询合同项目连
     * 
     * @param contractProjectConnectionId 合同项目连主键
     * @return 合同项目连
     */
    public ContractProjectConnection selectContractProjectConnectionByContractProjectConnectionId(Long contractProjectConnectionId);

    /**
     * 查询合同项目连列表
     * 
     * @param contractProjectConnection 合同项目连
     * @return 合同项目连集合
     */
    public List<ContractProjectConnection> selectContractProjectConnectionList(ContractProjectConnection contractProjectConnection);

    /**
     * 新增合同项目连
     * 
     * @param contractProjectConnection 合同项目连
     * @return 结果
     */
    public int insertContractProjectConnection(ContractProjectConnection contractProjectConnection);

    /**
     * 修改合同项目连
     * 
     * @param contractProjectConnection 合同项目连
     * @return 结果
     */
    public int updateContractProjectConnection(ContractProjectConnection contractProjectConnection);

    /**
     * 删除合同项目连
     * 
     * @param contractProjectConnectionId 合同项目连主键
     * @return 结果
     */
    public int deleteContractProjectConnectionByContractProjectConnectionId(Long contractProjectConnectionId);

    /**
     * 批量删除合同项目连
     * 
     * @param contractProjectConnectionIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteContractProjectConnectionByContractProjectConnectionIds(Long[] contractProjectConnectionIds);

    /**
     * 删除合同项目连表中所有该项目id相关记录
     *
     * @param contractProjectId 合同项目连项目id
     * @return 结果
     */
    public int deleteContractProjectConnectionByContractProjectId(Long contractProjectId);
}
